package morning.cat.goods.server.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @describe: 类描述信息
 * @author: morningcat.zhang
 * @date: 2019/6/6 11:04 AM
 */
@RestController
@RequestMapping("/goods")
public class GoodsController {

    @GetMapping("/by_id")
    public String byId(@RequestParam(defaultValue = "1") Long id) {
        return "goods " + id;
    }
}
